<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>Add New Hero and Skills</title>
    <!-- 引入Bulma CSS -->
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/bulma/0.9.3/css/bulma.min.css">
</head>
<body>

<section class="section">
    <div class="container">
        <h1 class="title">添加新英雄</h1>
        <form action="#" th:action="@{/heroes/addheroes}" method="post" class="box">
            <div class="field">
                <label class="label" for="name">英雄名称:</label>
                <div class="control">
                    <input class="input" type="text" id="name" name="name" required>
                </div>
            </div>

            <div class="field">
                <label class="label" for="description">英雄描述:</label>
                <div class="control">
                    <textarea class="textarea" id="description" name="description" required></textarea>
                </div>
            </div>

            <div class="field is-grouped">
                <div class="control">
                    <button class="button is-primary" type="submit">添加英雄</button>
                </div>
            </div>
        </form>
    </div>
</section>

</body>
</html>


